package com.zhiyiang.service.room;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhiyiang.Vo.RoomVO;
import com.zhiyiang.pojo.Room;

import java.util.List;

public interface RoomService {
    List<Room> findAll();

    Page<RoomVO> getAllHotel(Integer current, Integer size);

    Page<RoomVO> getRoom(String usercode,String query, Integer current, Integer size);

    Boolean deleteRoom(String id);

    Boolean addRoom(Room room);

    Room getRoom(Integer id);

    Boolean updateRoom(String id, Room room);

    Page<RoomVO> getLoginRoom(String usercode, Integer current, Integer size);

    void updateState(Integer id);

    List<Room> getRooms(Integer orderhotel,Integer roomtype);

    void reseveState(Integer roomcode,Integer orderhotel);

}
